#version 300 es

precision mediump float;
//2d纹理id
layout (location = 5) uniform sampler2D U_texture;
//当前片段对应的纹理坐标
in vec2 V_Texcoord;
//输出片段颜色
out vec4 fragColor;

void main() {
    //根据当前坐标从纹理读取对应的颜色
    fragColor = texture(U_texture, V_Texcoord);
}